package com.zjitc.model;/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/3/27 19:08
 * @description:
 */

import java.util.Date;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/3/27 19:08
 * @description:
 */
public class Cart {

  private Integer cartId;
  private Integer userId;
  private Integer productId;
  private Integer quantity;
  private Integer checked;
  private Date createTime;
  private Date updateTime;

  private User user;
  private Product product;

  public Cart() {
  }

  public Cart(Integer cartId, Integer userId, Integer productId, Integer quantity,
      Integer checked, Date createTime, Date updateTime) {
    this.cartId = cartId;
    this.userId = userId;
    this.productId = productId;
    this.quantity = quantity;
    this.checked = checked;
    this.createTime = createTime;
    this.updateTime = updateTime;
  }

  public Integer getCartId() {
    return cartId;
  }

  public void setCartId(Integer cartId) {
    this.cartId = cartId;
  }

  public Integer getUserId() {

    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public Integer getChecked() {
    return checked;
  }

  public void setChecked(Integer checked) {
    this.checked = checked;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }
}
